from rest_framework import serializers


# 将更新时间显示格式进行转换
class UpdateTimeSerializer(serializers.ModelSerializer):
    update_time = serializers.DateTimeField(format('%Y-%m-%d %H:%M:%S'), required=False, allow_null=True)
